#ifndef STACKH
#define STACKH
#include "LinkedList.h"
#include "Node.h"


//We inherit in public from LinkedList
//to be able to use all of its functions, for those who'd like to
//fiddle with its methods anyway.
//Since what we add to the LinkedList does not change the latter's internal behaviour/functionning at all (except for print)
//We only declare here in comments "//" what functions we'd 
//declare for public access here
//so that anyone with this .h file knows what kind of functions 
//he/she should normally be using with Stacks
class Stack:public LinkedList
{
	public:
		Stack();
		~Stack();
		void push(int);
		int pop();
		
		 //from parent & base class, not redefined in Stack.cpp, so we comment them
		//virtual void clear();
		//virtual int size() const;
		
		//same name as parent & base class, redefined in Stack.cpp
		void print();
};
#endif
